package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 device_gateway
 * 
 * @author ruoyi
 * @date 2020-10-14
 */
public class DeviceGateway extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 网关名称 */
    @Excel(name = "网关名称")
    private String gatewayName;

    /** 网关类型名称 */
    @Excel(name = "网关类型名称")
    private String gatewayTypename;

    /** 所属沼气站 */
    @Excel(name = "所属沼气站")
    private Long deptId;

    /** 网关编号 */
    @Excel(name = "网关编号")
    private String gatewayNo;

    /** $column.columnComment */
    @Excel(name = "网关编号")
    private Integer isOnline;

    /** $column.columnComment */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "网关编号", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastupdate;


    private SysDept dept;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGatewayName(String gatewayName) 
    {
        this.gatewayName = gatewayName;
    }

    public String getGatewayName() 
    {
        return gatewayName;
    }
    public void setGatewayTypename(String gatewayTypename) 
    {
        this.gatewayTypename = gatewayTypename;
    }

    public String getGatewayTypename() 
    {
        return gatewayTypename;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setGatewayNo(String gatewayNo) 
    {
        this.gatewayNo = gatewayNo;
    }

    public String getGatewayNo() 
    {
        return gatewayNo;
    }
    public void setIsOnline(Integer isOnline) 
    {
        this.isOnline = isOnline;
    }

    public Integer getIsOnline() 
    {
        return isOnline;
    }
    public void setLastupdate(Date lastupdate) 
    {
        this.lastupdate = lastupdate;
    }

    public Date getLastupdate() 
    {
        return lastupdate;
    }




    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("gatewayName", getGatewayName())
            .append("gatewayTypename", getGatewayTypename())
            .append("deptId", getDeptId())
            .append("gatewayNo", getGatewayNo())
            .append("isOnline", getIsOnline())
            .append("lastupdate", getLastupdate())
            .toString();
    }

    public SysDept getDept() {
        return dept;
    }

    public void setDept(SysDept dept) {
        this.dept = dept;
    }
}
